<!-- 列数设置 -->

<template>
  <div><u-list-components :data-source="[1,2,3,4,5]" :colnum="colnum">
  <template #default="scope">
    <u-linear-layout vusion-disabled-copy vusion-disabled-cut>
        <u-button>Button</u-button>
    </u-linear-layout>
  </template>
</u-list-components>
<u-button @click="colnum = colnum+1">改变列数</u-button><u-text>{{ colnum }}</u-text>
</div>
</template>

<script>
export default {
  data() {
    return {
      colnum: -1,
    }
  },
}
</script>